#ifndef _SEQLIST_H
#define _SEQLIST_H

#include <stdio.h>
#include <stdlib.h>

#define ERROR_INFO(msg) do{\
                    perror(msg);\
                    fprintf(stderr,"file:%s,func:%s,line:%d\n",__FILE__,__func__,__LINE__);\
                    }while(0);

typedef struct{
    int* data;
    signed char last;
    signed char len;
}seqlist, *p_seqlist;

seqlist* seqlistCreate(int len);
void seqlistFull(seqlist *p);
void seqlistEmpty(seqlist *p);
int seqlistDelete_post(seqlist* p,int x);
int seqlistDate_post(seqlist* p,int data);
int seqlistDelete_date(seqlist* p,int data);
int seqlistChange(seqlist* p,int x,int data);
int seqlistInter(seqlist *p,int data);
void seqlistShow(seqlist* p);

#endif